package main;

import java.rmi.registry.LocateRegistry;
import java.rmi.registry.Registry;

import server.PokerRoomServant;

public class Main {

	public static void main(String[] args) {

		try {
			String name = "PokerRoomServant";
			PokerRoomServant pokerRoomServant = new PokerRoomServant();

			Registry registry = LocateRegistry.createRegistry(9099);
			registry.rebind(name, pokerRoomServant.getSelfRemote());

			System.out.println("Server started");
		} catch (Exception e) {
			System.err.println("PokerRoomServant exception:");
			e.printStackTrace();
		}

	}

}
